﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Juego_Lp.Objects {
    public class Weapon {
       /*ATRIBUTOS*/
        private String sortWeapon;
        private int cost;
        private int damage;
                           
        /*CONSTRUCTOR*/
        public Weapon(String sortWeapon,int cost,int damage){
            this.sortWeapon = sortWeapon;
            this.cost = cost;
            this.damage = damage;            
        }       
        public Weapon() {
        
        }

        /*METODOS*/
         public String getSortWeapon(){
            return sortWeapon;
        }
        public void setSortWeapon(String sortWeapon){
            this.sortWeapon = sortWeapon;
        }       
        public int getCost(){
            return cost;
        }
        public void setCost(int cost){
            this.cost=cost;
        }
        public int getDamage(){
            return damage;
        }
        public void setDamage(int damage){
            this.damage = damage;
        }
        
/**
        /*OTROS*
        public void show(){
            System.out.println("Codigo:"+this.getCodigo()+" ESH"+this.getEsH()+
			" ESV"+this.getEsV()+" ESI"+this.getEsI()+" ESS"+this.getEsS()+
            " ESR"+this.getEsR()+" TIPOOFENDEFEN"+this.getTipoOfenDefen()+
            "\tNombre:"+this.getNombre() + "\tDescripcion:"+this.getDescripcion()+ 
            "\tAtaque:"+this.getAtaque()+"\tDefensa:"+this.getDefensa()+"\tCosto:"+
            this.getCosto()+"\tTipo:"+this.getTipo()+"\tForma:"+this.getForma());
	    }
        public char getTipoOfenDefen() {
            return tipoOfenDefen;
        }
        public void setTipoOfenDefen(char tipoOfenDefen) {
            this.tipoOfenDefen = tipoOfenDefen;
        }
        public boolean esdeltipo(Personaje a) {
            switch (a.getTipo()) {
                case 'R': return (this.esR == 'T');
                case 'V': return (this.esV == 'T');
                case 'H': return (this.esH == 'T');
                case 'S': return (this.esS == 'T');
                default: return (this.esI == 'T');
            }
        }
        public String toString() {
            return codigo + "," + esH + "," + esV + "," + esI + "," + esS + "," + esR + "," + 
                    tipoOfenDefen + "," + nombre + "," + descripcion + "," + ataque + "," + defensa + 
                    "," + costo + "," + tipo + "," + forma;
        }

        */

//    public void MuestraArmasPatriotas() {
//        System.out.println("1) Honda, ataque = 8,  costo = 30");
//        System.out.println("2) Lanza, ataque = 16, costo = 40");
//        System.out.println("2) Hacha, ataque = 14, costo = 35");
//    }
//
//    public void MuestraArmasRealista() {
//        System.out.println("1) Pistola, ataque = 14, costo = 30");
//        System.out.println("2) Rifle,   ataque = 18, costo = 40");
//    }

    }/*fin de clase*/
}